﻿# CMakeList.txt: 顶层 CMake 项目文件，在此处执行全局配置
# 并包含子项目。
#
cmake_minimum_required (VERSION 3.8)

project("testluajit")
SET(EXE_NAME "testluajit")
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJECT_BIN_PATH})

include_directories(
    "./src"
	${BASE_THRID_ROOT}/luajit
)

source_group("tools" FILES ${TOOLS_INC_LIST})
source_group("main" FILES main.cpp)


set(THIRD_INCLUDE_DIRS
)


set(THIRD_LIBRARY_DIRS 
)
#message("third lib dir:${THIRD_LIBRARY_DIRS}")

set(THIRD_LINK_LIBRARY
)

#message("third link lib:${THIRD_LINK_LIBRARY}")


list(APPEND GLOBAL_LIB lua51 luajit)

build_project(
	NAME 
		${EXE_NAME} 
	SRCS
		"main.cpp"
		${TOOLS_INC_LIST}
	INC_DIR
		${THIRD_INCLUDE_DIRS}
	LIB_DIR
		${THIRD_LIBRARY_DIRS}
	LINK_LIB
		${THIRD_LINK_LIBRARY}
)

